﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace Collector.EventHandle
{
    class winMsgControl
    {
        public const int VM_TEST_END = 1128;
        public const int WM_AUTO_RUN = 6688;
        public static int Caller = 0;
        [DllImport("User32.dll", EntryPoint = "SendMessage")]
        public static extern int SendMessage(int hWnd, int Msg, int wParam, string lParam);

        public static void sendResult(int result)
        {
            SendMessage(Caller, VM_TEST_END, result, null);
        }
    }
}
